package com.beamfield.dao.portal;

import com.beamfield.model.NewsSection;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface NewsSectionMapper {
    int deleteByPrimaryKey(Long news_section_id);

    int insert(NewsSection record);

    int insertSelective(NewsSection record);

    NewsSection selectByPrimaryKey(Long news_section_id);

    int updateByPrimaryKeySelective(NewsSection record);

    int updateByPrimaryKey(NewsSection record);

    long countByBeamId(@Param("beamId") Long beamId);

    List<NewsSection> selectByBeamId(@Param("offset") String offset, @Param("limit") String limit, @Param("beamId") Long beamId);

    List<NewsSection> selectByName(@Param("name") String name,@Param("beamId") Long beamId);
}